package com.ruoyi.common.service.impl;

import com.ruoyi.common.file.ReadFileContent;
import com.ruoyi.common.service.ReadFileInterface;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReadFileService implements ReadFileInterface {
    @Override
    public List<String> getWordDataFromFile(String wordFileNum){
        if (wordFileNum.isBlank() || wordFileNum.length() != 2){
            return null;
        }
        return ReadFileContent.readFile(wordFileNum);
    }
}
